package com.xiaoc.bulldozer.common.service;

public interface SmtpMessageService {

    /**
     * 发送smt消息
     * 
     * @param phoneNumber
     * @param content
     */
    public void sendMessage(String phoneNumber, String content);


    public void sendMessageSaveLog(String phoneNumber, String content, Integer type);

    /**
     * 发送验证码
     * 
     * @param phoneNumber
     */
    public void sendVerifyCode(String phoneNumber, String type);

    /**
     * 验证手机号对应验证码是否正确
     * 
     * @param phoneNumber
     * @param code
     * @param type
     * @return
     */
    public boolean verifyCode(String phoneNumber, String code, String type);

    /**
     * 生成随机数
     * 
     * @param charCount
     * @return
     */
    public String getRandNum(int charCount);

    /**
     * 清除验证码
     * 
     * @param phoneNumber
     * @param code
     */
    public void clearVerifyCode(String phoneNumber);
}
